package excercise;

public class EX01_Q16 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
/*		int n = 1;
		int k = 2;
		int r = n;
		
		if ( k < n ) r = k;
		
		System.out.println( );
*/		
		/*
		int n = 1;
		int k = 2;
		int r;
		if( n < k ) r = k;
		else r = k + n;
		System.out.println( r );
		*/
		
		/*
		int n = 1;
		int k = 2;
		int r = k;
		
		if ( r < k ) n = r;
		else k = n;
		System.out.println( k );
		*/
		
		int n = 1;
		int k = 2;
		int r = 3;
		
		if ( r < n + k ) r = 2 * n;
		else k = 2 * r;
		
		System.out.println( k );
		
		
		
		
	}

}
